package com.decisiones.td;

import android.os.Bundle;
import android.widget.LinearLayout;

import org.apache.cordova.*;

import com.google.ads.*;

public class MainActivity extends DroidGap {

    @Override
    public void onCreate(Bundle savedInstanceState) {

    	String PUBLISHER_ID = "a1522cae6f016e4";
    	
    	super.onCreate(savedInstanceState);
    	super.setIntegerProperty("splashscreen", R.drawable.ic_launcher);
        super.loadUrl("file:///android_asset/www/index.html", 2000);
           
	    AdView adView = new AdView(this, AdSize.BANNER, PUBLISHER_ID);      
	    LinearLayout layout = super.root;
	    layout.addView(adView);
	    layout.setHorizontalGravity(android.view.Gravity.CENTER_HORIZONTAL);
	    adView.loadAd(new AdRequest());
    }
}